/********************************************************************************
 *      Copyright:  (C) 2022 Li Yanting<liyanting2@163.com>
 *                  All rights reserved.
 *
 *       Filename:  client_socket.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(04/19/2022)
 *         Author:  Li Yanting <liyanting2@163.com>
 *      ChangeLog:  1, Release initial version on "04/19/2022 12:29:13 PM"
 *                 
 ********************************************************************************/

#ifndef _CLIENT_SOCKET_H_
#define _CLIENT_SOCKET_H_

#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <errno.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <unistd.h>
#include <fcntl.h>

#define CONFIG_DEBUG
#ifdef CONFIG_DEBUG
#define dbg_printf(format, args...) printf(format, ##args)
#else
#define dbg_printf(format, args...) do{} while(0)
#endif

int socket_connect_client(char *serv_ip, int serv_port);
int get_socket_state(int sockfd);


#endif


